package org.csmzxy.class2333;

public class Pet {
    private String type;
    private int age;
    private boolean vaccinum;
    public void setType(String type) {
        this.type = type;
    }
    public void setAge(int age) {
        this.age = age;
    }
    public void setVaccinum(boolean vaccinum) {
        this.vaccinum = vaccinum;
    }
    public String getType() {
        return type;
    }
    public int getAge() {
        return age;
    }
    public boolean getVaccinum() {
        return vaccinum;
    }
    public static void main(String[] args) {
        Pet pet1 = new Pet();
        pet1.setType("Dog");
        pet1.setAge(3);
        pet1.setVaccinum(true);
        Pet pet2 = new Pet();
        pet2.setType("Cat");
        pet2.setAge(2);
        pet2.setVaccinum(false);
        System.out.println("Pet 1 Information:");
        System.out.println("Type:" + pet1.getType());
        System.out.println("Age:" + pet1.getAge());
        System.out.println("Vaccinated:" + pet1.getVaccinum());
        System.out.println("\nPet 2 Information:");
        System.out.println("Type:" + pet2.getType());
        System.out.println("Age:" + pet2.getAge());
        System.out.println("Vaccinated:" + pet2.getVaccinum());
    }
}

